Query Defaults Registry entry

Specify a set of values to display by default in a module when the module enters Search mode. One or more sets of default values can be specified.

Usage

This Registry entry can be assigned to users and groups:

Key User Group Group
Key 1 User Group Group
Key 2 user group Default
Key 3 Table
Key 4 table
Key 5 Query Defaults
Key 6 title
Value defaults

Note: A Query Defaults|title entry is generated automatically when a user with the daDefaults permission sets default values using the Edit>Default Values menu option in a module. It can also be specified manually by an Administrator.

The Base Defaults version of this entry is:

Key User Group Group
Key 1 User Group Group
Key 2 user group Default
Key 3 Table Table Table
Key 4 table table table
Key 5 Query Defaults
Key 6 Base Defaults
Value defaults

Note: A Query Defaults|Base Defaults entry is specified by an Administrator.

where:

title

is a name for the set of defaults that displays in the Defaults box (select Edit>Default Values>Change in Search mode).

Note: Title must be unique and descriptive to assist users when selecting it from the Defaults box.

defaults

is in the format column=value;column=value;...

where:

column is the back-end name of a field and value is the default value to use in the field.

If a field is a table of values, multiple values can be entered (one per line) by separating them with a tilde, e.g. column=value1~value2

A semicolon is used to separate each column=value pair.

Note: Strictly speaking, placing quotes around a value that comprises a single word is unnecessary; placing quotes around a multi-word value does guarantee that a precise phrase search is performed on it. In versions of EMu from 5.0 onwards, be sure to escape quotation marks: e.g. \"value\".
Placing quotes around a single word value will not adversely affect the search.

Example

The following example defines two default search terms when running a search in the Parties module:

Key Setting
Key 1 Group
Key 2 Manager
Key 3 Table
Key 4 eparties
Key 5 Query Defaults
Key 6 Base Defaults
Value NamPartyType=Person
NamPrimaryLanguage=English